/**
 * Pawn.java
 * Auti i class ine ipethini gia ta Pawns ( Stratiotakia ). Ohi gia tous kanones pou ta diakrini.
 */

package chess;

public class Pawn extends Piece{
    
    public Pawn(){ super(); }
    
    /**
     * 
     * @param clr To hroma gia to King, vasi tou opiou tha apofasisti to icon. 
     * @param mov To an to King tha ine movable apo to mouse.
     */
    public Pawn(char clr ,  boolean mov){
        this();
        if( clr=='w'){ setPieceImage("Wpawn.png"); }
        else{ setPieceImage("Bpawn.png"); } //black pawn !!!
        setMovability(mov);
        setPieceColor(clr);
    }
}